package com.seu.vcampus.vo;

import java.io.Serializable;
import java.sql.Timestamp;

public class Order implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String ID;
	private String user;
	private String product;
	private Timestamp time;
	private int quantity;
	private double price;
	
	public Order(String id, String us, String pro, Timestamp tm, int qua, double pr)
	{
		this.ID = id;
		this.user = us;
		this.product = pro;
		this.time = tm;
		this.quantity = qua;
		this.price = pr;
	}
	
	public void setID(String id)
	{
		this.ID = id;
	}
	public String getID()
	{
		return this.ID;
	}
	
	public void setUser(String us)
	{
		this.user = us;
	}
	public String getUser()
	{
		return this.user;
	}
	
	public void setProduct(String pro)
	{
		this.product = pro;
	}
	public String getProduct()
	{
		return this.product;
	}
	
	public void setTime(Timestamp tm)
	{
		this.time = tm;
	}
	public Timestamp getTime()
	{
		return this.time;
	}
	
	public void setQuantity(int qua)
	{
		this.quantity = qua;
	}
	public int getQuantity()
	{
		return this.quantity;
	}
	
	public void setPrice(double pr)
	{
		this.price = pr;
	}
	public double getPrice()
	{
		return this.price;
	}
	
	@Override
	public String toString()
	{
		return "Order{ID=" + this.ID + ", user=" + this.user + ", product=" + this.product + ", time=" + this.time + ", price" + this.price + "}";
	}
}
